﻿@model IEnumerable<Article>

@if (!Model.Any())
{
    <div class="text-center mt-3">暂无任何数据</div>
}
else
{
<ul class="list-unstyled">

    @foreach (var item in Model)
    {
        <li class="border-bottom mb-3">
            <div class="float-left">
                <h5><a asp-page="./Detail" asp-route-id="@item.Id">@item.Title</a></h5>
                <ul class="list-inline mt-3 text-muted text-sm">
                    <li class="list-inline-item"><i class="fa fa-eye"></i> @item.ViewCount</li>
                    <li class="list-inline-item"><i class="fa fa-comments"></i> @item.Comments.Count</li>
                </ul>
            </div>
            <div class="float-right">
                <span class="badge badge-info">@item.CreateTime.ToChineseDateString()</span>
            </div>
            <div class="clearfix"></div>
        </li>
    }
</ul>
}